﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 可着陆物体的触发器
/// </summary>
public class LandingSiteTrigger : MonoBehaviour
{
    private void OnTriggerEnter(Collider other)
    {
        if (other.transform.parent != null && other.transform.parent.GetComponent<Player>() != null)
        {
            transform.parent.GetComponent<LandingSite>().OnPlayerLand();
        }
    }
}
